package pro.shushi.pamirs.hr.api.tmodel;

import pro.shushi.pamirs.boot.base.ux.annotation.field.UxWidget;
import pro.shushi.pamirs.boot.base.ux.annotation.view.UxTableSearch;
import pro.shushi.pamirs.hr.api.enums.BooleanConstantEnum;
import pro.shushi.pamirs.hr.api.enums.eam.PirEnum;
import pro.shushi.pamirs.hr.api.enums.eam.UkCycTypeEnum;
import pro.shushi.pamirs.hr.api.enums.eam.UkRsEnum;
import pro.shushi.pamirs.hr.api.enums.eam.UkStatEnum;
import pro.shushi.pamirs.hr.api.model.org.Employee;
import pro.shushi.pamirs.meta.annotation.Field;
import pro.shushi.pamirs.meta.annotation.Model;
import pro.shushi.pamirs.meta.base.TransientModel;

import java.math.BigDecimal;
import java.util.List;

@Model.model(EamUkHdMtoolReq.MODEL_MODEL)
@Model(displayName = "工装保养参数",summary = "工装保养参数")
public class EamUkHdMtoolReq extends TransientModel {

    public static final String MODEL_MODEL = "hr.simple.EamUkHdMtoolReq";


    @Field(displayName = "组织编码")
    private String orgCode;

    @Field(displayName = "保养单编码")
    public String ukCode;

    @Field.Enum(size = 4)
    @Field(displayName = "保养类型")
    public UkCycTypeEnum ukCycType;

    @Field.Enum(size='4')
    @Field(displayName = "保养结果")
    public UkRsEnum ukRs;

    @Field.Enum(size='4')
    @Field(displayName = "优先级")
    public PirEnum pir;

    @Field.Integer
    @Field(displayName = "前置天数")
    public Integer preDay;

    @Field.Enum(size='4')
    @Field(displayName = "状态")
    public UkStatEnum ukStat;

    @Field.Money(M=20,D=6)
    @Field(displayName = "停机时间(分钟)")
    public BigDecimal stopTs;

    @Field.Money(M=20,D=6)
    @Field(displayName = "停机时间(分钟)")
    public BigDecimal stopPts;

    @Field.Enum(size='1')
    @Field(displayName = "带病作业",  defaultValue = "n")
    public BooleanConstantEnum isSick;

    @Field(displayName = "工装编码")
    private String mtoolCode;

    @Field.Enum(size='1')
    @Field(displayName = "生成维修单",  defaultValue = "n")
    public BooleanConstantEnum isGenMaintain;

}